package com.example.adapter;

/**
 * @version 1.0.0
 * @className: Phone
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 10:56
 */
public class Phone {
    //正常电压220v，是一个常量
    public static final int V = 220;

    private VoltageAdapter adapter;
    public void change(){
        adapter.changeVoltage();
    }

    public void setAdapter(VoltageAdapter voltageAdapter){
        this.adapter=voltageAdapter;
    }
}
